Skip to content

Update 8 voltage divider packages for new ResistorVoltageDivider API#447

Open
napowderly wants to merge 5 commits intomainfrom
feature/upgrade-vdiv-packages
Open

Update 8 voltage divider packages for new ResistorVoltageDivider API#447
napowderly wants to merge 5 commits intomainfrom
feature/upgrade-vdiv-packages

Conversation

@napowderly
Copy link
Copy Markdown
Contributor

Summary

Migrate all packages with voltage dividers to the new ResistorVoltageDivider API (atopile 0.14.x discrete sampling solver). All 8 packages build successfully with both default and usage targets.

API Migration

Old New
.r_top .chain.resistors[0]
.r_bottom .chain.resistors[1]
.power .ref_in
.output / .output.line .ref_out / .ref_out.hv
.max_current .current

Package Version Bumps

Package Old Version New Version Old requires-atopile New
ti-tps82130 0.1.1 0.2.0 ^0.10.12 ^0.14.0
ti-tpsm863257 0.1.1 0.2.0 ^0.10.13 ^0.14.0
ti-lv2842x 0.2.3 0.3.0 ^0.12.4 ^0.14.0
ti-tps563201 0.1.9 0.2.0 ^0.12.4 ^0.14.0
ti-tps54560x 0.1.7 0.2.0 ^0.12.4 ^0.14.0
st-ldk220 0.2.3 0.3.0 ^0.12.4 ^0.14.0
ti-tlv75901 0.4.0 0.5.0 ^0.14.0 ^0.14.0
ti-tps63020 0.3.0 0.4.0 ^0.14.0 ^0.14.0

Verified Picked Values (Usage Builds)

Package Use Case r_top r_bottom v_fb ref
ti-tps82130 12V→3.3V 3.57kΩ 1.15kΩ 0.804V 0.8V
ti-tpsm863257 12V→3.3V 11.5kΩ 2.55kΩ 0.599V 0.6V
ti-lv2842x 36V→15V 301kΩ 16.2kΩ 0.766V 0.765V
ti-tps563201 5V→3.3V 102kΩ 30.9kΩ 0.767V 0.768V
ti-tps54560x 24V→5V 215kΩ 40.2kΩ 0.788V 0.8V
st-ldk220 5V→3.3V 63.4kΩ ≈1.185V 1.185V
ti-tlv75901 5V→3.3V 9.09kΩ 1.82kΩ 0.550V 0.55V
ti-tps63020 bat→3.3V 169kΩ 30.9kΩ ≈0.51V 0.5V

Additional Fixes

  • from "regulators.ato" import Ximport AdjustableRegulator (file-path imports no longer resolve; AdjustableLDO/Buck not in stdlib allowlist)
  • Deprecated .vcc/.gnd.hv/.lv
  • assert x is <literal>assert x within <literal>
  • cap.power ~ power_out → bridge connections (avoids solver alias cycles)
  • Old pin names p1/p2unnamed[0]/unnamed[1] or bridge connections
  • Cross-parameter inequalities replaced with explicit bounds (simple solver compatibility)
  • Duplicate trait has_part_removed removed (st-ldk220 usage)

Test plan

  • All 8 packages build with ato build (both default and usage targets)
  • Picked resistor values verified against datasheet reference voltages
  • Publish packages to registry

🤖 Generated with Claude Code

Migrate all packages using voltage dividers to the new API introduced
in atopile 0.14.x with the discrete sampling solver. Bump versions
(minor) and set requires-atopile to ^0.14.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@napowderly napowderly force-pushed the feature/upgrade-vdiv-packages branch from d1cb3a8 to 15398ba Compare April 3, 2026 00:09
napowderly and others added 4 commits April 2, 2026 17:15
Generated by `ato build` after updating voltage divider API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy the (at X Y angle) coordinates from the old r_top/r_bottom
footprints to the new chain.resistors[0]/chain.resistors[1] footprints
so board layouts are preserved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The chain.resistors[0/1] footprints were at origin (0,0). Placed
them adjacent to the converter package at (157, 103-104).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…istors

- st-ldk220, ti-tlv75901, ti-tps82130: "0402" -> "R0402" for divider resistors
- ti-tps82130: rebuild picked parts with R0402 footprint
- ti-tps63020/default: place divider resistors near IC

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant